<%--
  Created by IntelliJ IDEA.
  User: zzl
  Date: 2021/1/18
  Time: 12:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,inittal-scale=1" />
    <title>更改用户信息</title>
    <script src="<%=basePath%>/js/jquery-3.1.1.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="<%=basePath%>/resource/css/bootstrap.css" />
    <script src="<%=basePath%>/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="<%=basePath%>/js/setimgurl.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
<center>
    <h1 style="color: orange;">用户信息修改</h1>

    <div class="img-circle" style="margin-top: 20px;margin-left: 7px;height: 100px;">
        <img src="<%=basePath%>/resource/img/userImg1.jpg" data-toggle="modal" data-target="#myModal" id="cuimg" style="width: 100px;height: 100px;"/><span style="font-size: 18px;color:#31B0D5;margin-left: 6px;">上之恋奶茶</span>
        <input type="image" src="<%=basePath%>/resource/img/update.png" style="width: 20px;height: 20px;margin-left: 6px;" />
    </div>
    <div style="margin-left:180px ;">
        <input type="class="form-control"" name="birth" placeholder="生日"/><br />
        <input type="class="form-control""  style="margin-top: 8px;" name="sex" placeholder="性别"/><br />
        <input type="class="form-control"" style="margin-top: 8px;" name="telphoe" placeholder="电话"/><br/>
        <button type="submit" style="margin-top: 8px;" class="btn-info">提交</button>
    </div>
</center>

<input type="hidden" id="myhide" value="${requestScope.image}">
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    上传用户图片
                </h4>
            </div>
            <div class="modal-body">
                <span>只能上传png,gif,jpeg格式的图片</span>
                　<s:form action="fileUpload" method="post" enctype="multipart/form-data">
                <s:hidden name="user.id"></s:hidden>
                <input type="file" class="input-group" name="file"><br>
                <button type="submit" class="btn btn-primary">提交</button>
            </s:form>
            </div>

        </div>
    </div>
</div>
</body>
</html>
